package com.springboot.asyn.controller;

import com.springboot.asyn.service.Send1;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class AsynController {
//    @Autowired
//    UserService userService;
    @Autowired
    Send1 send1;

    @RequestMapping("/a")
    public String test() throws InterruptedException {
//        userService.test();
        send1.send1();

        System.out.println();
        return "邮件已发送";
    }

}
